package com.hoshiicloud.saleorder.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 扩展商品SKU
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ExtSkuVO对象", description = "扩展商品SKU")
public class ExtSkuDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long companyid;
    private Long platformid;
    private Long storeid;
    /**
     * spuid
     */
    @ApiModelProperty(value = "spuid")
    private Long spuid;
    /**
     * skuid
     */
    @ApiModelProperty(value = "skuid")
    private Long skuid;
    private String skuTitle;
    /**
     * 售价
     */
    @ApiModelProperty(value = "售价")
    private BigDecimal salePrice;
    /**
     * 市场价
     */
    @ApiModelProperty(value = "市场价")
    private BigDecimal maketPrice;
    /**
     * 成本价
     */
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;
    /**
     * 供应商
     */
    @ApiModelProperty(value = "供应商")
    private Long vendorId;
    /**
     * sku图片
     */
    @ApiModelProperty(value = "sku图片")
    private String skuImage;
    /**
     * 属性
     */
    @ApiModelProperty(value = "属性")
    private String extendProperty;
    /**
     * 规格
     */
    @ApiModelProperty(value = "规格")
    private String extendSpec;
    /**
     * 1-单类仓库 2-多类仓库
     */
    @ApiModelProperty(value = "1-单类仓库 2-多类仓库")
    private Integer dispatchPolicy;
    /**
     * 单类仓库类别 ID
     */
    @ApiModelProperty(value = "单类仓库类别 ID")
    private Long dispatchWhid;
    /**
     * 多类仓库类别ID 集合   1:2:3
     */
    @ApiModelProperty(value = "多类仓库类别ID 集合   1:2:3")
    private String dispatchWhids;
    /**
     * 是否库存足够才能下单 1 是 0 否
     */
    @ApiModelProperty(value = "是否库存足够才能下单 1 是 0 否")
    private Integer storeEnough;

    /**
     * 收货间隔时间
     */
    private Integer receiptInterval;

    /**
     * 提货日期
     */
    private LocalDateTime receiptDate;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdtime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updatedtime;
    /**
     * 建立人
     */
    @ApiModelProperty(value = "建立人")
    private String createdby;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String updatedby;
    /**
     * 状态  0-待审批 1-审批未过 2-已上架 3-已下架
     */
    @ApiModelProperty(value = "状态  0-待审批 1-审批未过 2-已上架 3-已下架")
    private Integer status;
    /**
     * 是否删除
     */
    @ApiModelProperty(value = "是否删除")
    private Integer deleted;
}
